package com.jt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller     //1.交给容器 2.开启SpringMVC机制
public class HelloController {
    /**
     * ~/hello  访问hello
     * @return  返回页面名称
     */
    @RequestMapping("/hello")
    public String hello(){
        return "hello";
    }
}
